package com.cskaoyan.wordmemorize.common.constant;

/**
 * Permission Constants
 */
public class PermissionCodeConstants {
    /**
     *  存放权限码的常量内部类
     *
     */

    // 物料管理
    public static final class Material {
        public static final String CODE = "100";

        public static final class Category {
            public static final String CODE = "10001";
            public static final String ADD = "10001001";
            public static final String UPDATE = "10001002";
            public static final String DELETE = "10001003";
            public static final String BATCH_DELETE = "10001004";
            public static final String SEARCH = "10001005";
        }

        public static final class Book {
            public static final String CODE = "10002";
            public static final String ADD = "10002001";
            public static final String UPDATE = "10002002";
            public static final String DELETE = "10002003";
            public static final String BATCH_DELETE = "10002004";
            public static final String SEARCH = "10002005";
        }

        public static final class Chapter {
            public static final String CODE = "10003";
            public static final String ADD = "10003001";
            public static final String UPDATE = "10003002";
            public static final String DELETE = "10003003";
            public static final String BATCH_DELETE = "10003004";
            public static final String SEARCH = "10003005";
        }

        public static final class Vocabulary {
            public static final String CODE = "10004";
            public static final String ADD = "10004001";
            public static final String UPDATE = "10004002";
            public static final String DELETE = "10004003";
            public static final String BATCH_DELETE = "10004004";
            public static final String EXCEL_UPLOAD = "10004005";
            public static final String SEARCH = "10004006";
        }

        public static final class Topic {
            public static final String CODE = "10005";
            public static final String ADD = "10005001";
            public static final String UPDATE = "10005002";
            public static final String DELETE = "10005003";
            public static final String SEARCH = "10005004";
        }
    }

    // 账号权限管理
    public static final class Account {
        public static final String CODE = "200";

        public static final class Employee {
            public static final String CODE = "20001";
            public static final String ADD = "20001001";
            public static final String UPDATE = "20001002";
            public static final String DELETE = "20001003";
            public static final String SEARCH = "20001004";
        }

        public static final class Role {
            public static final String CODE = "20002";
            public static final String ADD = "20002001";
            public static final String UPDATE = "20002002";
            public static final String DELETE = "20002003";
            public static final String SEARCH = "20002004";
            public static final String AUTHORIZE = "20002005";
        }

        public static final class Permission {
            public static final String CODE = "20003";
            public static final String ADD = "20003001";
            public static final String UPDATE = "20003002";
            public static final String DELETE = "20003003";
            public static final String SEARCH = "20003004";
            public static final String ADD_SUB = "20003005";
        }
    }

    // 商品管理权限
    public static final class Product {
        public static final String CODE = "300";

        public static final class PaidGoods {
            public static final String CODE = "30001";
            public static final String ADD = "30001001";
            public static final String UPDATE = "30001002";
            public static final String DELETE = "30001003";
            public static final String BATCH_DELETE = "30001004";
            public static final String SEARCH = "30001005";
        }
    }

    // 等级权限管理
    public static final class Level {
        public static final String CODE = "400";

        public static final class LevelManagement {
            public static final String CODE = "40001";
            public static final String ADD = "40001001";
            public static final String UPDATE = "40001002";
            public static final String DELETE = "40001003";
            public static final String BATCH_DELETE = "40001004";
            public static final String SEARCH = "40001005";
        }

        public static final class Privilege {
            public static final String CODE = "40002";
            public static final String ADD = "40002001";
            public static final String UPDATE = "40002002";
            public static final String DELETE = "40002003";
            public static final String BATCH_DELETE = "40002004";
            public static final String SEARCH = "40002005";
        }

        public static final class AiReading {
            public static final String CODE = "40003";
            public static final String ADD = "40003001";
            public static final String UPDATE = "40003002";
            public static final String DELETE = "40003003";
            public static final String BATCH_DELETE = "40003004";
            public static final String SEARCH = "40003005";
        }
    }

    // 系统管理
    public static final class System {
        public static final String CODE = "500";

        public static final class OperationLog {
            public static final String CODE = "50001";
            public static final String SEARCH = "50001001";
        }
    }
}